-- GENERATED SPELL FOR [Poisonous Mushroom] --


function spell0_30435(pUnit, Event) --@Poison Cloud,Self--
pUnit:FullCastSpellOnTarget(57061,pUnit)
pUnit:RegisterEvent('Sorts_30435', 9000, 1)
end

function Sorts_30435(pUnit, Event)
local choix_sorts_30435 = math.random(0, 0)
if choix_sorts_30435 == 0 then
pUnit:RegisterEvent('spell0_30435', 1, 1)
end
end

function mob30435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30435', math.random(1500, 3000), 1)
end

function mob30435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30435, 1, 'mob30435_Action')
RegisterUnitEvent(30435, 2, 'mob30435_Leave')
RegisterUnitEvent(30435, 3, 'mob30435_Kill')
RegisterUnitEvent(30435, 4, 'mob30435_Die')
